<template>
<!--仓库展示-->
  <div>
    <div class="warehouse-box">
      <div style="display: flex;padding-left: 15px;padding-top: 11px;height: 30px" >
        <a  href="#">
          <div style="display: flex"  >
            <i class="icon-cangkubaobiao-cangkupandianbaobiao" style="margin-top: 4px;margin-right: 5px;margin-left: 5px"></i>
            <h3>仓库信息展示&nbsp;&nbsp;&nbsp;</h3>
          </div>
        </a>
      </div>
    <div class="warehouse-box-detail">
      <div v-for="(item,index) in warehouseList" :key="index" style="width: 100%;margin-bottom: 30px">
        <el-descriptions  direction="vertical" :column="4" border>
          <el-descriptions-item label="仓库名"><span style="font-size: 16px;font-weight: bold">{{item.warehouseName}}</span></el-descriptions-item>
          <el-descriptions-item label="仓库负责人"><span style="font-size: 16px;font-weight: bold">{{item.responsiblePerson}}</span></el-descriptions-item>
          <el-descriptions-item label="仓库地址" :span="2">{{item.address}}</el-descriptions-item>
          <el-descriptions-item label="仓库电话">
            <el-tag size="small">{{item.phone}}</el-tag>
          </el-descriptions-item>
          <el-descriptions-item label="备注">{{item.remark}}</el-descriptions-item>

        </el-descriptions>

      </div>

    </div>
    </div>
  </div>
</template>

<script>
import {get} from "../../utils/request";

export default {
  name: "WarehouseShow",
  data(){
    return{
      warehouseList:[],
    }
  },
  mounted() {
    get('/api/v1/warehouse/show/select').then(resp=>{
      this.warehouseList=resp.data
    })
  }
}
</script>

<style scoped>

a{
  text-decoration: none;
  color: #2c3e50;
}
h3{
  margin: 0;
}
.warehouse-box-detail{
  padding-top: 20px;
  width: 1230px;
  margin-left: 30px;
  height: 580px;
  overflow: hidden;
  overflow-y: scroll;
  border-radius: 20px;
  /*background-color: #f2f2f2;*/
  padding-bottom: 20px;
}
.warehouse-box{
  height: 674px;

  margin-top: 10px;
  width: 1290px;
  background-color: white;
  border-radius: 30px;
  box-shadow:  20px 20px 60px #bebebe,
  -20px -20px 60px #ffffff;
}
</style>
